package com.ruoyi.dgw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dgw.mapper.SubsidiesMapper;
import com.ruoyi.dgw.domain.Subsidies;
import com.ruoyi.dgw.service.ISubsidiesService;

/**
 * 补贴发放Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-23
 */
@Service
public class SubsidiesServiceImpl implements ISubsidiesService 
{
    @Autowired
    private SubsidiesMapper subsidiesMapper;

    /**
     * 查询补贴发放
     * 
     * @param id 补贴发放主键
     * @return 补贴发放
     */
    @Override
    public Subsidies selectSubsidiesById(Long id)
    {
        return subsidiesMapper.selectSubsidiesById(id);
    }

    /**
     * 查询补贴发放列表
     * 
     * @param subsidies 补贴发放
     * @return 补贴发放
     */
    @Override
    public List<Subsidies> selectSubsidiesList(Subsidies subsidies)
    {
        return subsidiesMapper.selectSubsidiesList(subsidies);
    }

    /**
     * 新增补贴发放
     * 
     * @param subsidies 补贴发放
     * @return 结果
     */
    @Override
    public int insertSubsidies(Subsidies subsidies)
    {
        return subsidiesMapper.insertSubsidies(subsidies);
    }

    /**
     * 修改补贴发放
     * 
     * @param subsidies 补贴发放
     * @return 结果
     */
    @Override
    public int updateSubsidies(Subsidies subsidies)
    {
        return subsidiesMapper.updateSubsidies(subsidies);
    }

    /**
     * 批量删除补贴发放
     * 
     * @param ids 需要删除的补贴发放主键
     * @return 结果
     */
    @Override
    public int deleteSubsidiesByIds(Long[] ids)
    {
        return subsidiesMapper.deleteSubsidiesByIds(ids);
    }

    /**
     * 删除补贴发放信息
     * 
     * @param id 补贴发放主键
     * @return 结果
     */
    @Override
    public int deleteSubsidiesById(Long id)
    {
        return subsidiesMapper.deleteSubsidiesById(id);
    }
}
